package com.ztf.gui;

import com.ztf.bean.User;

import java.awt.image.BufferedImage;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

import javax.swing.AbstractListModel;

public class ImageListModel extends AbstractListModel<User> {
	private static final long serialVersionUID = 1L;
	private List<User> imageFile = new ArrayList<>();
	
	public void addElement(User file){
		this.imageFile.add(file);
	}
	public int getSize(){
		return imageFile.size();
	}
	public User getElementAt(int index){
		return imageFile.get(index);
	}
	
}
